package com.gcit.seniorWish.web.modular.examinee.service;

import java.util.List;

import com.gcit.seniorWish.web.common.constant.cache.Cache;
import com.gcit.seniorWish.web.common.constant.cache.CacheKey;
import org.antlr.v4.runtime.misc.Nullable;

import com.baomidou.mybatisplus.service.IService;
import com.gcit.seniorWish.core.node.SelectNode;
import com.gcit.seniorWish.web.common.persistence.model.SeniorSchool;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

/**
 * 学校相关业务
 *
 * @author tonglu
 * @Date 2017年1月10日 下午9:11:57
 */
public interface ISeniorSchoolService extends IService<SeniorSchool> {

	List<SelectNode> listSchoolForSelect2(@Nullable String term,@Nullable String schoolId);

	@Transactional
	@CacheEvict(value = Cache.BUSS, key = "'" + CacheKey.SENIOR_CLASS + "'+#seniorSchool.id")
	void mergeSeniorSchool(SeniorSchool seniorSchool);
}
